﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using UnityEngine;
using System.IO;
using System.Security.Cryptography;

namespace DashFire
{
  public class ResUpdateCallback
  {
    public static void OnStartDetectVersion()
    {
      NormLog.Instance.Record(GameEventCode.CheckUpdate);
    }
    public static void OnEndDetectVersion(bool isNeedUpdate)
    {
      NormLog.Instance.Record(GameEventCode.CheckResult);
    }
    public static void OnStartUpdate()
    {
      NormLog.Instance.Record(GameEventCode.StartUpdate);
    }
    public static void OnEndUpdate()
    {
      NormLog.Instance.Record(GameEventCode.EndUpdate);
    }
    public static void OnStartUnzip()
    {
      NormLog.Instance.Record(GameEventCode.StartExtract);
    }
    public static void OnEndUnzip()
    {
      NormLog.Instance.Record(GameEventCode.EndExtract);
    }
    public static void OnStartLoad(string levelName)
    {
      if (levelName.ToLower() == "loading") {
        NormLog.Instance.Record(GameEventCode.LoadAssets);
      }
    }
    public static void OnEndLoad(string levelName)
    {
      if (levelName.ToLower() == "loading") {
        NormLog.Instance.Record(GameEventCode.EndAssets);
      }
    }
    public static void OnStartRequestServerList()
    {
      NormLog.Instance.Record(GameEventCode.ServerList);
    }
    public static void OnEndRequestServerList()
    {
    }
    public static void OnStartRequestNoticeConfig()
    {
    }
    public static void OnEndRequestNoticeConfig()
    {
    }
    public static void OnStartRequestChannelConfig()
    {
    }
    public static void OnEndRequestChannelConfig()
    {
    }
    public static void OnUpdateVersionNum(string versionNum)
    {

    }
  }
}
